<?php
$isReloadable = true;
require_once("../../../pers/inc.config.php");
require_once('../../_inc/inc.session.php');
require_once('../../_inc/funct.html.php');
require_once('../../_inc/funct.getFiles.php');

$aFiles = getFiles();

$cmdL = "";
$cmdR = "";
$cmdR .= cmdTorna(); 

testaHtml('Gestione file', 'Lista file',$msgPag, 'gest');
?>
<table class="cmd1" border="0" cellpadding="3" cellspacing="1" width="100%" align='center'>
   <tr>
      <td class="cmd1" align="left">
         <?=$cmdL?>
      </td>
      <td class="cmd1" align="right">
         <?=$cmdR?>
      </td>
   </tr>
</table>
<table class="tab1" border="0" cellpadding="3" cellspacing="1" width="100%" align='center'>
   <tr>
      <td class="lab1" width='10%' align='center'>Codice</td>
      <td class="lab1" width='40%' align='center'>Descrizione</td>
      <td class="lab1" width='50%' align='center'>Nota</td>
   </tr>
<? 
$clRF = 'txt2';
foreach($aFiles as $codX => $aX) { 
	$clRF = ($clRF=='txt1')?'txt2':'txt1';	
?>
   <tr>
      <td class="<?=$clRF?>">
      	<a href='fileView.php?cod=<?=$codX."&$sXSNQS"?>' class="<?=$clRF?>"
      	 	style='font-family:lucida console,courier;'>
            <?
            echo substr($codX,4);
            ?>
         </a>
      </td>
      <td class="<?=$clRF?>">
            <? echo $aX['descr'];?>
      </td>
      <td class="<?=$clRF?>">
            <?
            echo getHtmlViewNote(ovfVx($aX,'nota'));
            ?>
      </td>
<? } ?>
</table>
<table class="cmd1" border="0" cellpadding="3" cellspacing="1" width="100%" align='center'>
   <tr>
      <td class="cmd1" align="left">
         <?=$cmdL?>
      </td>
      <td class="cmd1" align="right">
         <?=$cmdR?>
      </td>
   </tr>
</table>
<?
echo "</file>\n";
codaHtml();
exit();

